{include file="common/_header"}
{include file="common/_header1"}

<body class="layui-anim layui-anim-up">
<div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">服务管理</a>
            <a>
              <cite>服务团队列表</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>

<div class="x-body">

    <xblock>
        <!--            <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <button class="layui-btn" onclick="x_admin_show('添加服务团队','/service/boxeteam?team_id=0',800,800)"><i class="layui-icon"></i>  添 加</button>
        <!--            <span class="x-right" style="line-height:40px">共有数据：88 条</span>-->
    </xblock>

    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <div class="layui-input-inline">
                {if $data.isHqAdmin}
                <div class="layui-unselect layui-form-select shop_id" style="display:inline-block;">
                    <input type="text" name="team_name"  placeholder="请输入服务团队名称" value="{$data.get['team_name']}" autocomplete="off" class="layui-input">
                </div>
                {/if}
                <div class="layui-unselect layui-form-select shop_id" style="display:inline-block;">
                    <select name="status">
                        <option value="">状态</option>
                        <option value="1" {$data.get.status == '1'?'selected':''}>正常</option>
                        <option value="2" {$data.get.status == '2'?'selected':''}>下架</option>
                    </select>
                </div>
                <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
            </div>

        </form>
    </div>



    <table id="tables" class="layui-table">
        <thead>
        <tr>
            <th>团队ID</th>
            <th>归属</th>
            <th>团队名称</th>
            <th>团队联系号码</th>
            <th>简介</th>
            <th>团队封面图</th>
            <th>省</th>
            <th>市</th>
            <th>区</th>
            <th>街道</th>
            <th>状态</th>
            <th>排序</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="data.data" id="vo"}
        <tr class="table_tr">
            <td>{$vo.team_id}</td>
            <td>{if $vo.shop_id == 0}总部{else}{$vo.shop_name}{/if}</td>
            <td>{$vo.team_name}</td>
            <td>{$vo.phone}</td>
            <td>{$vo.description}</td>
            <td><img src="/{$vo.top_pic}"  class="srcimage"></td>
            <td>{$vo.province_name}</td>
            <td>{$vo.city_name}</td>
            <td>{$vo.area_name}</td>
            <td>{$vo.street_name}</td>
            <td>
                {$vo.status == '1'?'<span class="status_span">正常</span>':' <span class="status_span_2">禁止</span>'}
            </td>
            <td>{$vo.sort}</td>
            <td>{$vo.add_time|date="Y-m-d H:i"}</td>
            <td>
                <ul class="nav navbar-nav" style=" height: 40px; line-height: 10px;">
                    <li class="dropdown" style="height: 100%;">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" style=" height: 100%; line-height: 5px;">
                            操作
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a title="信息编辑"  onclick="x_admin_show('编辑', '/service/boxeteam?team_id={$vo.team_id}', '800', '800')" href="javascript:;">编辑</a></li>
                            <li class="divider"></li>
                            <li><a title="删除" onclick="OperateDel('delteam?team_id={$vo.team_id}')" href="javascript:;">删除</a></li>
                        </ul>
                    </li>
                </ul>
            </td>

        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page_all">
        {$page|raw}
    </div>
</div>
</body>

{include file="common/_bottom"}